<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * App\BaiduForm
 *
 * @property int $id
 * @property string|null $form_data
 * @property int|null $page_id
 * @property int|null $site_id
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduForm newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduForm newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduForm query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduForm whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduForm whereFormData($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduForm whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduForm wherePageId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduForm whereSiteId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduForm whereUpdatedAt($value)
 * @mixin \Eloquent
 * @property string|null $lead_id
 * @method static \Illuminate\Database\Eloquent\Builder|\App\BaiduForm whereLeadId($value)
 */
class BaiduForm extends Model
{
    protected $table='5kcrm_baidu_form';
    public function getFormDataAttribute($value)
    {
        return json_decode($value,true);
    }

}
